--local LayoutAnim={}
module(...,package.seeall)
function alphaShow(view,delay)
  if MoreVisualEffect then
    import "android.view.animation.LayoutAnimationController"
    import "android.view.animation.AlphaAnimation"
    local alphaAnim=AlphaAnimation(0,1)
    alphaAnim.setDuration(200)
    local controller=LayoutAnimationController(alphaAnim)
    controller.setDelay(delay or 0.05)
    controller.setOrder(LayoutAnimationController.ORDER_NORMAL)
    view.setLayoutAnimation(controller)
  end
  return view
end
function scaleShow(view,delay)
  if MoreVisualEffect then
    import "android.view.animation.LayoutAnimationController"
    import "android.view.animation.ScaleAnimation"
    local alphaAnim=ScaleAnimation(0,1,0,1,1,0.5,1,0.5)
    alphaAnim.setDuration(200)
    local controller=LayoutAnimationController(alphaAnim)
    controller.setDelay(delay or 0.05)
    controller.setOrder(LayoutAnimationController.ORDER_NORMAL)
    view.setLayoutAnimation(controller)
  end
  return view
end

--return LayoutAnim